module.exports = function (e) {
  return new Promise(function (n, t) {
    wx.request({
      url: ''.concat(e, '?imageAve'),
      header: {
        'content-type': 'application/json',
        'Cache-Control': 'no-store',
      },
      success: function (e) {
        n(e.data.RGB.replace('0x', ''));
      },
      error: function (e) {
        t(e);
      },
    });
  });
};
